package demo;

public class Test3 {

    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();
        computer.open();
        computer.useService(mouse);
        computer.useService(keyBoard);
        computer.close();
    }
}
